<h2 class="page-heading">
  <span class="page-heading-icon"><i class="fa fa-user"></i></span>
  <a href="{{{user.userPageUrl}}}" class="user-name">{{user.name}}</a>
  {{#user.roleName}}<span class="label label-inverse">{{user.roleName}}</span>{{/user.roleName}}
</h2>

<nav class="navbar navbar-default navbar-static-top" role="navigation">
  <div class="navbar-header">
    <button type="button" data-toggle="collapse" data-target="#content-navbar" class="navbar-toggle"><i class="fa fa-bars"></i></button>
  </div>
  <div class="navbar-collapse collapse in" id="content-navbar">
    <ul class="nav navbar-nav">
      <li class="{{#isUserPage}}active{{/isUserPage}}"><a href="{{{user.userPageUrl}}}">Profile</a></li>
      <li class="{{#isUserScriptListPage}}active{{/isUserScriptListPage}}"><a href="{{{user.userScriptListPageUrl}}}" class="{{^user.userScriptListPageUrl}}disabled{{/user.userScriptListPageUrl}}">Scripts{{#scriptListCount}} <span class="badge">{{scriptListCount}}</span>{{/scriptListCount}}</a></li>
      {{#user.canSync}}
        {{#isYou}}
          <li class="{{#isUserSyncListPage}}active{{/isUserSyncListPage}}"><a href="{{{user.userSyncListPageUrl}}}" class="{{^user.userSyncListPageUrl}}disabled{{/user.userSyncListPageUrl}}">Syncs{{#syncListCount}} <span class="badge">{{syncListCount}}</span>{{/syncListCount}}</a></li>
        {{/isYou}}
        {{^isYou}}
          {{#isAdmin}}
            <li class="{{#isUserSyncListPage}}active{{/isUserSyncListPage}}"><a href="{{{user.userSyncListPageUrl}}}" class="{{^user.userSyncListPageUrl}}disabled{{/user.userSyncListPageUrl}}">Syncs{{#syncListCount}} <span class="badge">{{syncListCount}}</span>{{/syncListCount}}</a></li>
          {{/isAdmin}}
        {{/isYou}}
      {{/user.canSync}}
      <li class="{{#isUserCommentListPage}}active{{/isUserCommentListPage}}"><a href="{{{user.userCommentListPageUrl}}}" class="{{^user.userCommentListPageUrl}}disabled{{/user.userCommentListPageUrl}}">Comments{{#commentListCount}} <span class="badge">{{commentListCount}}</span>{{/commentListCount}}</a></li>
      {{#isYou}}
        <li class=""><a href="#">Votes{{#voteListCount}} <span class="badge">{{voteListCount}}</span>{{/voteListCount}}</a></li>
        {{#user.showFlags}}
        <li class=""><a href="#">Flags{{#flagListCount}} <span class="badge">{{flagListCount}}</span>{{/flagListCount}}</a></li>
        {{/user.showFlags}}
      {{/isYou}}
      {{^isYou}}
        {{#isAdmin}}
          <li class=""><a href="#">Votes{{#voteListCount}} <span class="badge">{{voteListCount}}</span>{{/voteListCount}}</a></li>
          {{#user.showFlags}}
            <li class=""><a href="#">Flags{{#flagListCount}} <span class="badge">{{flagListCount}}</span>{{/flagListCount}}</a></li>
          {{/user.showFlags}}
        {{/isAdmin}}
        {{^isAdmin}}
          {{#isMod}}
            <li class=""><a href="#">Votes{{#voteListCount}} <span class="badge">Yes</span>{{/voteListCount}}</a></li>
            {{#user.showFlags}}
              <li class=""><a href="#">Flags{{#flagListCount}} <span class="badge">Yes</span>{{/flagListCount}}</a></li>
            {{/user.showFlags}}
          {{/isMod}}
        {{/isAdmin}}
      {{/isYou}}
    </ul>
  </div>
</nav>
